import 'package:flutter/material.dart';

import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:loxen/utils/color.dart';
import 'package:loxen/utils/string_res.dart';
import 'package:loxen/widget/my_subassembly.dart';

class OrderSuccessWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: PreferredSize(
        preferredSize: Size(double.infinity, 96.h),
        child: Container(
          color: Theme.of(context).backgroundColor,
          child: SafeArea(
            child: Column(
              children: [
                Row(
                  children: <Widget>[
                    MySubassembly.getBackIcon(context,
                        color: Theme.of(context).textTheme.subtitle2.color),
                    Expanded(
                      child: Center(
                        child: Text(
                          StringResources.xia_dan_cheng_gong,
                          style: TextStyle(
                              fontSize: 32.sp,
                              fontWeight: FontWeight.w500,
                              color: Theme.of(context).textTheme.subtitle2.color),
                        ),
                      ),
                    ),
                    MySubassembly.getSearchIcon(null, text: Text('')),
                  ],
                ),
                Divider(height: 1.h)
              ],
            ),
          ),
        ),
      ),
      backgroundColor: Colours.bg_color,
      body: Container(
        width: double.infinity,
        child: Column(
          children: [
            Padding(
              padding: EdgeInsets.only(top: 170.h),
              child: Image.asset(
                'images/put_order_success.png',
                width: 230.w,
                height: 230.w,
              ),
            ),
            Padding(
              padding: EdgeInsets.only(top: 40.h),
              child: Text(
                StringResources.xia_dan_cheng_gong,
                style: TextStyle(
                  fontSize: 32.sp,
                  fontWeight: FontWeight.bold,
                  color: Colours.main_text,
                ),
              ),
            ),
            Padding(
              padding: EdgeInsets.only(top: 30.h),
              child: Text(
                '服务中心确认中......',
                style: TextStyle(
                  fontSize: 28.sp,
                  color: Colours.main_text,
                ),
              ),
            )
          ],
        ),
      ),
    );
  }
}
